//
//  HappyDatabase.h
//  HappyTrip
//
//  Created by GeminyXC on 15-4-6.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <sqlite3.h>

#import "HappyObject.h"

@interface HappyDatabase : NSObject

{
    sqlite3 *dbPoint;
}

+ (HappyDatabase *)shareInstance;

- (void)openDB;
- (void)closeDB;
- (void)createTable;
- (void)insertHappyObject:(HappyObject *)happyObj;
- (void)deleteHappyObject:(HappyObject *)happyObj;
- (NSMutableArray *)selectAll;

@end
